package PhotovoltaicPowerStation.Equipments;

/**
 * @Description:
 *  * 逆变器的信息包括设备编号、设备名称、设备状态、输入电压、输出电压、输出功率。
 * @Author:AMark
 * @Date: 11/1/2023
 */
public class Reverse extends Equipment {
    private int inVolt, outVolt, outPower;
    public int getInVolt() {
        return this.inVolt;
    }
    public int getOutVolt() {
        return this.outVolt;
    }
    public int getOutPower() {
        return this.outPower;
    }
    public Reverse(){

    }
    public Reverse(String name, int status, int inVolt, int outVolt, int outPower){
        super(name, status);
        this.inVolt = inVolt;
        this.outVolt = outVolt;
        this.outPower = outPower;
    }

    @Override
    public String toString() {
        return "类型：逆变器" + " 编号：" + ID +" 名称：" + Name + " 输入电压：" + inVolt + " 输出电压：" + outVolt + "输出功率：" + outPower + "\n";
    }
}
